package com.my.dao;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Part;

public interface PartDAO {

	boolean addPart(Part part) throws Exception;

	boolean editPart(Part part) throws Exception;

	Part getPartById(Class<Part> c, Integer id) throws Exception;

	boolean removePart(Integer id) throws Exception;

	BigInteger getTotalPartRecords() throws Exception;

	List<Part> getAllPartByPage(int pageindex, int pagesize) throws Exception;

	BigInteger searchTotalPartRecords(Part part) throws Exception;

	List<Part> searchPartByPage(int pageindex, int pagesize, Part part)
			throws Exception;

	boolean isExist(String name);
}
